package com.linkoog.devtools.datafaker;

import com.linkoog.devtools.datafaker.generator.AddressGenerator;
import com.linkoog.devtools.datafaker.generator.CarPlateNumGenerator;
import com.linkoog.devtools.datafaker.generator.CompanyNameGenerator;
import com.linkoog.devtools.datafaker.generator.EmailGenerator;
import com.linkoog.devtools.datafaker.generator.FamousQuotesGenerator;
import com.linkoog.devtools.datafaker.generator.PersonNameGenerator;
import com.linkoog.devtools.datafaker.generator.PhoneNumGenerator;

public class Faker {

    public static int randomNum(int start, int end) {
        return (int)(Math.random()*(end-start+1)+start);
    }

    /**
     * 人名生成器
     */
    public static String personName() {
        return personName.generate();
    }
    /**
     *  邮箱生成器
     */
    public static String email() {
        return email.generate();
    }
    /**
     * 电话号码生成器
     */
    public static String phoneNum() {
        return phoneNum.generate();
    }

    /**
     * 公司名称生成器
     */
    public static String companyName() {
        return companyName.generate();
    }
    /**
     *  车牌号生成器
     */
    public static String carPlateNum() {
        return carPlateNum.generate();
    }
    /**
     *  地址生成器
     */
    public static String address() {
        return address.generate();
    }
    /**
     *  名人名言生成器
     */
    public static String famousQuotes() {
        return famousQuotes.generate();
    }




    public final static PersonNameGenerator personName = new PersonNameGenerator();
    public final static CompanyNameGenerator companyName = new CompanyNameGenerator();
    public final static PhoneNumGenerator phoneNum = new PhoneNumGenerator();
    public final static CarPlateNumGenerator carPlateNum = new CarPlateNumGenerator();
    public final static EmailGenerator email = new EmailGenerator();
    public final static AddressGenerator address = new AddressGenerator();
    public final static FamousQuotesGenerator famousQuotes = new FamousQuotesGenerator();
}
